package com.jhz.speedy.component.net;

/**
 * 任务结果
 * Created by JunHeZ on 2017/6/29.
 */
public class ActionResult<T> {
    /**
     * 成功
     */
    public static final int STATE_OK = 1;

    /**
     * 服务器的响应实体内容是出错，
     * 或者响应实体无法解析
     */
    public static final int STATE_ERROR_RESPOND = 0;

    /**
     * 请求状态码，非200
     */
    public static final int STATE_ERROR_CODE = 2;

    public int state;

    public String tag;

    public T data;
}
